//
//  BanBu_EmoKeyboard.h
//  Koochat
//
//  Created by Wang Xj on 14-4-9.
//
//

#import <UIKit/UIKit.h>
#import "SCGIFImageView.h"

@protocol BanBu_EmoKeyboardDelegate;

@interface BanBu_EmoKeyboard : UIViewController<UIScrollViewDelegate>
{
    UIButton * _addstoreBu;
}

@property (assign, nonatomic) id<BanBu_EmoKeyboardDelegate>delegate;
@property (retain, nonatomic) IBOutlet UIView * keyboardScrollView;         //表情主View

@property (retain, nonatomic) IBOutlet UIScrollView *emoTypeScrollView;     //表情种类
@property (retain, nonatomic) IBOutlet UIScrollView *defaultEmoScrollView;  //默认表情
@property (retain, nonatomic) IBOutlet UIScrollView *characterScrollView;   //字符表情
@property (retain, nonatomic) IBOutlet UIScrollView *EmoScrollView;         //下载的表情
@property (retain, nonatomic) IBOutlet UIScrollView *CollectionScrollView;  //收藏的表情

@property (retain, nonatomic) IBOutlet UIPageControl *pageControl;

@property (retain, nonatomic) NSMutableArray * emoArr;  //下载的表情
@property (retain, nonatomic) NSMutableArray *inputedStr; //字符表情
@property (assign, nonatomic) NSInteger selectedTag;    //正在显示的表情
@property (retain, nonatomic) NSMutableArray *collectedArr; //收藏的表情

@property (retain, nonatomic) UIImageView * newView;
//切换默认键盘：默认表情、收藏、字符键盘间切换
- (IBAction)changeDefaultKeyboard:(UIButton *)sender;

//发送消息
- (IBAction)sendEmo:(UIButton *)sender;
@property (retain, nonatomic) IBOutlet UIButton *sendButton;

#pragma mark - 预览大图
@property (retain, nonatomic) NSDictionary * emoInfoDic;
@property (retain, nonatomic) IBOutlet UIView *showBigView;
@property (retain, nonatomic) IBOutlet UIImageView *backgroundImageView;
@property (retain, nonatomic) IBOutlet SCGIFImageView *BigView;

//收藏的表情
-(void)initWithCustEmo:(NSArray *)emoInfoArr;

@end


@protocol BanBu_EmoKeyboardDelegate <NSObject>

//发送表情
-(void)banBu_SmileView:(BanBu_EmoKeyboard *)smileView didInputSmile:(NSString *)inputStr isDelete:(BOOL)deleteY type:(int)type;

-(void)goinToEmoStore:(BanBu_EmoKeyboard *)smileView withNextView:(NSString *)nextView;

//发送下载、收藏的表情
-(void)BanBu_EmoViewInputSmile:(NSString *)inputStr type:(int)type filePathExtension:(NSString *)extension;

-(void)sendCharactor;

//2014年11月03日10:03:08 by yinlinlin 恢复到默认表情，删除表情商店表情使用
- (void)changeToDefaultEmo;
@end